﻿<%@ page title="" language="VB" masterpagefile="~/promocionVenta.master" autoeventwireup="false" inherits="rptGerenciales_xTpoInmueble, App_Web_xtpoinmueble.aspx.28022574" enableEventValidation="false" theme="PrincipalTheme" maintainScrollPositionOnPostBack="true" maxPageStateFieldLength="250" %>

<%@ MasterType VirtualPath="~/promocionVenta.master" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<%@ Register Assembly="Flan.Controls" Namespace="Flan.Controls" TagPrefix="flan" %>
<%@ Register Assembly="ExtGridView" Namespace="ExGridView" TagPrefix="exGV" %>
<%@ OutputCache Duration="15" VaryByParam="none" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style type="text/css">
.filaEncabezadoPrincipal
{
background-image: url('../imagenes/px_td.jpg');
width: 100%;
background-repeat: repeat;
}
.filaEncabezadoTitulo
{
background-image: url('../imagenes/submenu3.PNG');
background-repeat: repeat;
}
.filaEncabezado
{
background-image: url('../imagenes/submenu3.PNG');
width: 100%;
background-repeat: repeat;
}
.colGrilla
{
background-image: url('../imagenes/submenu2.PNG');
background-repeat: repeat;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table style="width: 100%; background-color: #f4f4f4;" cellspacing="0">
<tr class="filaEncabezadoPrincipal">
<td>
<table width="100%">
<tr>
<td><asp:Label ID="Label5" runat="server" CssClass="CeldaTituloTexto" Text="Tipo de Inmueble"></asp:Label></td>
</tr>
</table>
</td>
</tr>
</table>
<asp:Panel ID="pnlProformas" runat="server" Width="100%">
<table style="width: 100%; background-color: #f4f4f4" class="EditarLabel" cellspacing="0" cellpadding="0" border="1">
<tbody>
<tr>
<td>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="filaEncabezado"><asp:Label ID="Label90" runat="server" Text="Búsqueda " Font-Bold="True" SkinID="lblSubTituloTexto"></asp:Label></td>
</tr>
<tr>
<td>
<table cellpadding="0" cellspacing="0">
<tr>
<td align="right"></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td align="right">&nbsp;&nbsp;</td>
<td align="right"></td>
<td>&nbsp;</td>
<td></td>
<td width="10">&nbsp;</td>
<td width="10"></td>
<td width="10"></td>
<td width="10"></td>
</tr>
<tr>
<td align="right"><asp:Label ID="Label1" runat="server" SkinID="lblNormal" Text="Rango Fecha Inicial :" TabIndex="4"></asp:Label></td>
<td></td>
<td>
<asp:UpdatePanel ID="upFchInicio" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:TextBox ID="txtFchInicio" runat="server" SkinID="txtNormalObligatorioSkin" TabIndex="5" Width="100px"></asp:TextBox>
<asp:ImageButton ID="imgFchInicio" runat="server" ImageUrl="~/imagenes/Procesos/calendario.png" TabIndex="6" />
<ajax:MaskedEditExtender ID="MExtFchInicio" runat="server" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" Mask="99/99/9999" MaskType="Date" TargetControlID="txtFchInicio" UserDateFormat="DayMonthYear"></ajax:MaskedEditExtender>
<ajax:CalendarExtender ID="CExtFchInicio" runat="server" Format="dd/MM/yyyy" PopupButtonID="imgFchInicio" TargetControlID="txtFchInicio">
</ajax:CalendarExtender>
</ContentTemplate>
</asp:UpdatePanel>
</td>
<td align="right">&nbsp;</td>
<td align="right"><asp:Label ID="Label3" runat="server" SkinID="lblNormal" Text="Fecha Final :" TabIndex="7"></asp:Label></td>
<td>&nbsp;</td>
<td>
<asp:UpdatePanel ID="upFchFin" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:TextBox ID="txtFchFin" runat="server" SkinID="txtNormalObligatorioSkin" TabIndex="8" Width="100px"></asp:TextBox>
<asp:ImageButton ID="imgFchFin" runat="server" ImageUrl="~/imagenes/Procesos/calendario.png" Width="16px" TabIndex="9" />
<ajax:MaskedEditExtender ID="MExtFchFin" runat="server" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" Mask="99/99/9999" MaskType="Date" TargetControlID="txtFchFin" UserDateFormat="DayMonthYear"></ajax:MaskedEditExtender>
<ajax:CalendarExtender ID="CExtFchFin" runat="server" Format="dd/MM/yyyy" PopupButtonID="imgFchFin" TargetControlID="txtFchFin">
</ajax:CalendarExtender>
</ContentTemplate>
</asp:UpdatePanel>
</td>
<td>&nbsp;</td>
<td><asp:Button ID="btnBuscar" runat="server" OnClientClick="return validar();" SkinID="btnNormalSkin" Text="Buscar" /></td>
<td><asp:Button ID="btnLimpiar" runat="server" SkinID="btnNormalSkin" Text="Limpiar" /></td>
<td><asp:Button ID="btnExportar" runat="server" SkinID="btnNormalSkin" Text="Exportar" /></td>
</tr>
<tr>
<td align="right">&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;&nbsp;</td>
<td align="right">&nbsp;</td>
<td align="right">&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellpadding="0" cellspacing="0" style="width: 100%" border=2>
<tbody>
<tr>
<td class="filaEncabezado"><asp:Label ID="Label4" runat="server" Text="Resultado de Búsquedas" Font-Bold="True" SkinID="lblSubTituloTexto"></asp:Label></td>
</tr>
<tr>
<td>
<div style="width: 100%; height: 20px; scrollbar-face-color: #B5B5B5;" class="DivPanelGrillaEncabezado">
<table cellpadding="0" cellspacing="1" width="100%" style="height:100%">
<tr align="center">
<td align="center" valign="middle" width="16%" class="colGrilla"><asp:LinkButton ID="lnkBtnCodigo" runat="server" SkinID="lnkBtnEncabezado" Height="100%">Tipos</asp:LinkButton></td>
<td align="center" valign="middle" width="12%" class="colGrilla"><asp:LinkButton ID="lnkBtnNombre" runat="server" SkinID="lnkBtnEncabezado" Height="100%">Total Stock</asp:LinkButton></td>
<td align="center" valign="middle" width="12%" class="colGrilla"><asp:LinkButton ID="lnkBtnEstado" runat="server" SkinID="lnkBtnEncabezado" Height="100%">Unidad Separadas</asp:LinkButton></td>
<td align="center" valign="middle" width="12%" class="colGrilla"><asp:LinkButton ID="LinkButton3" runat="server" SkinID="lnkBtnEncabezado" Height="100%">Unidad Vendidas</asp:LinkButton></td>
<td align="center" valign="middle" width="12%" class="colGrilla"><asp:LinkButton ID="LinkButton1" runat="server" SkinID="lnkBtnEncabezado" Height="100%">Monto T. Vendido</asp:LinkButton></td>
<td align="center" valign="middle" width="12%" class="colGrilla"><asp:LinkButton ID="LinkButton2" runat="server" SkinID="lnkBtnEncabezado" Height="100%">Monto Cobrado</asp:LinkButton></td>
<td align="center" valign="middle" width="12%" class="colGrilla">
<asp:LinkButton ID="LinkButton4" runat="server" SkinID="lnkBtnEncabezado" Height="100%">Monto por Cobrar</asp:LinkButton>
</td>
<td align="center" valign="middle" width="12%" class="colGrilla">
<asp:LinkButton ID="LinkButton5" runat="server" SkinID="lnkBtnEncabezado" Height="100%">Montos Vencidos</asp:LinkButton>
</td>
</tr>
</table>
</div>
<div style="border: 1px solid #999999; overflow-y: hidden; overflow-x: hidden; width: 100%; height: 350px; scrollbar-face-color: #B5B5B5;" class="DivPanelGrillaCuerpo">
<asp:UpdatePanel ID="upGvwLista" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:GridView ID="gvwLista" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="0" ForeColor="Black" GridLines="Vertical" Width="100%" Font-Names="Tahoma" SkinID="gvwListaSkinWith100P" ShowHeader="False" EnableSortingAndPagingCallbacks="True">
<Columns>
<asp:TemplateField HeaderText="descTpoInmueble">
<ItemTemplate><asp:LinkButton ID="lnkDescTpoInmueble" runat="server" CausesValidation="False" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;" Text='<%# Eval("descTpoInmueble") %>'></asp:LinkButton></ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="16%" Height="20px" />
<ItemStyle HorizontalAlign="Left" Width="16%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="cantidad">
<ItemTemplate><asp:LinkButton ID="lnkCantidad" runat="server" CausesValidation="False" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;" Text='<%# Eval("cantidad","{0:###,##0}") %>'></asp:LinkButton></ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="12%" Height="20px" />
<ItemStyle HorizontalAlign="Right" Width="12%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="unidadesSeparadas">
<ItemTemplate><asp:LinkButton ID="lnkUnidadesSeparadas" runat="server" CausesValidation="False" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;" Text='<%# Eval("unidadesSeparadas","{0:###,##0}") %>'></asp:LinkButton></ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="12%" Height="20px" />
<ItemStyle HorizontalAlign="Right" Width="12%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="unidadesVendidas">
<ItemTemplate><asp:LinkButton ID="lnkUnidadesVendidas" runat="server" CausesValidation="False" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;" Text='<%# Eval("unidadesVendidas","{0:###,##0}") %>'></asp:LinkButton></ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="12%" Height="20px" />
<ItemStyle HorizontalAlign="Right" Width="12%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="mtoVendido">
<ItemTemplate><asp:LinkButton ID="lnkMtonVendido" runat="server" CausesValidation="False" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;" Text='<%# Eval("mtoVendido","{0:###,##0.00}") %>'></asp:LinkButton></ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="12%" Height="20px" />
<ItemStyle HorizontalAlign="Right" Width="12%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="mtoCobrado">
<ItemTemplate><asp:LinkButton ID="lnkMtoCobrado" runat="server" CausesValidation="False" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;" Text='<%# Eval("mtoCobrado","{0:###,##0.00}") %>'></asp:LinkButton></ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="12%" Height="20px" />
<ItemStyle HorizontalAlign="Right" Width="12%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="mtoPorCobrado">
<ItemTemplate><asp:LinkButton ID="lnkMtoPorCobrado" runat="server" CausesValidation="False" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;" Text='<%# Eval("mtoPorCobrar","{0:###,##0.00}") %>'></asp:LinkButton></ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="12%" Height="20px" />
<ItemStyle HorizontalAlign="Right" Width="12%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="mtoVencido">
<ItemTemplate><asp:LinkButton ID="lnkMtoVencido" runat="server" CausesValidation="False" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;" Text='<%# Eval("mtoVencido","{0:###,##0.00}") %>'></asp:LinkButton></ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="12%" Height="20px" />
<ItemStyle HorizontalAlign="Right" Width="12%" Height="20px" />
</asp:TemplateField>
</Columns>
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>
<table style="width: 30%" cellpadding="0" cellspacing="0">
<tr>
<td width="1">&nbsp;</td>
<td>&nbsp;&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width="1"></td>
<td width="177px"><asp:Label ID="Label29" runat="server" SkinID="lblNormalNegrita" Text="Monto Total de Proformas" Visible="false"></asp:Label></td>
<td><asp:Label ID="lblTotalIngresosSeparación" runat="server" SkinID="lblNormal" Visible="false">: 0.00</asp:Label></td>
</tr>
<tr>
<td width="1">&nbsp;</td>
<td>&nbsp;&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</asp:Panel>

<script language="javascript" type="text/javascript">
function validar() {
if (document.getElementById('ctl00$ContentPlaceHolder1$txtFchInicio').value == '') {
alert('Debe ingresar una fecha inicio.');
document.getElementById('ctl00$ContentPlaceHolder1$txtFchInicio').focus();
return (false);
}
if (document.getElementById('ctl00$ContentPlaceHolder1$txtFchFin').value == '') {
alert('Debe ingresar una fecha final.');
document.getElementById('ctl00$ContentPlaceHolder1$txtFchFin').focus();
return (false);
}
}
</script>
</asp:Content>